const { defineConfig } = require('@vue/cli-service')

const path = require('path')

module.exports = defineConfig({
  transpileDependencies: true,

  // 格式错误，不会造成编译报错
  lintOnSave: true,

  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        // 指定注入的less文件
        path.join(__dirname, '/src/styles/var.less')
      ]
    }
  },

  configureWebpack: {
    devServer: { allowedHosts: ['www.corho.com'] }
  }

})
